feat(docs): persistent sidebar + in-page TOC, consistent prev/next, corrected API references - #58
Merged
Merged
Conversation
…orrected API references - added a persistent grouped left sidebar to all 12 docs pages (nav.ts single source of truth, active-page highlight, sticky rail on desktop, mobile disclosure) - in-page TOC with scroll-spy on long reference pages (CDL spec, cli-options, components, 4 API pages) via a heading-scanning DocsTOC (desktop sticky rail + mobile bottom sheet) - consistent PageNav prev/next on every page in reading order (previously only on API pages) - new DocsLayout wraps every page - corrected API-doc drift against real package sources: crystal-renderer 1.0.1→2.0.0, mineral-database 2.2.0→2.3.0 + 140→216 presets + valid preset ids (quartz-prism/diamond-octahedron), crystal-geometry field rename + radians units + newly-documented public API, cdl-parser stale repr/type examples - CDL Examples page reworked for the playground-disabled state (copy-to-clipboard per snippet, syntax-reference links into the spec, honest "coming back" callout) with the playground path preserved to auto-restore when re-enabled - both sticky rails measured pinned through deep scroll in light+dark - 502 tests, browser-verified
|
🚀 Preview deployed to: https://b0592f45.gemmology-dev.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nav.ts, with active-page highlight, sticky rail on desktop, and mobile disclosure.DocsTOC(desktop sticky rail + mobile bottom sheet).DocsLayoutwrapping every docs page.Test plan